﻿using System;
using Mbs;
using Mbs.Modularity;
using Mbs.Windows;

namespace ModuleManager.Module
{
    public class ModuleStarter : ModuleActivator//<IThreadPresenter>
    {
        public override void Start()
        {
            base.Start();
            Registry.Register<IModuleManagerView, ModuleManagerView>();
            CommandNames.ModuleManager.Subscribe<EventArgs>((s, e) => Workspace.Get(WorkspaceNames.Main).Show(Locator.Get<IModuleManagerPresenter>().View));
        }
    }

    public class CommandNames : Mbs.SystemCommands
    {
        
    }

    public class AddInItems
    {
        public const string ContextMenu = "Shell/ModuleManager/ContextMenu";
    }

    public class WorkspaceNames
    {
        public const string Main = "MainWorkSpace";
    }

}
